/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javase202202 - Str
 * <p>Powered by Lisi On 2022-06-02 16:46:50
 * <p>Created by IntelliJ IDEA
 *

 * @version 1.0
 * @since 17
 */
public class Str {
    public static void main(String[] args) {
        int age = 18;
        String name = "李四";
        System.out.println("姓名：" + name + "，年龄：" + age + "岁。");
        String info = String.format("姓名：%s，年龄：%d岁。", name, age);
        System.out.println(info);
    }
}
